use comb, clear

/* Rule chosen in Part 1 (all subjects chose a rule in part 1) */
tab part1RuleGroup
tab part1RuleGroup, sum(part1RuleBaseline) means

/* Rule chosen in Part 2 (relevant subjects only) */
tab part2RuleGroup if part2RuleGroup
tab part2RuleGroup if part2RuleGroup, sum(part2RuleBaseline) means

/* Known minimum outcome in all states */
sum part1RuleMinimum
